package com.our.sys.project1.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;

import org.springside.modules.orm.grid.ViewField;

/**
 * 采购计划
 * @author acer
 *
 */
@Entity
@Table(name = "C_PurchasePlan")
public class PurchasePlan implements Serializable {

    private static final long serialVersionUID = -3791242043483457518L;
    @ViewField
    private Long id;
    @ViewField
    private Long smId;
    @ViewField(header = "物资类别", width = 150, align = "left")
    private String smName;
    @ViewField(header = "制作人", width = 100, align = "left")
    private String who;
    @ViewField(header = "计划单号", width = 150, align = "left")
    private String planNumber;
    @ViewField(header = "制作时间", width = 100, align = "left")
    private String createTime;
    @ViewField
    private String state;//1.未审核，2.已审核，3.已驳回
    @ViewField(header = "审核时间", width = 100, align = "left")
    private String checkTime;

    @Id
    @GeneratedValue(strategy = GenerationType.TABLE, generator = "Id_Generator")
    @TableGenerator(name = "Id_Generator", table = "ID_GENERATOR", pkColumnName = "GEN_NAME", valueColumnName = "GEN_VAL", pkColumnValue = "C_PurchasePlan")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getSmId() {
        return smId;
    }

    public void setSmId(Long smId) {
        this.smId = smId;
    }

    public String getSmName() {
        return smName;
    }

    public void setSmName(String smName) {
        this.smName = smName;
    }

    public String getWho() {
        return who;
    }

    public void setWho(String who) {
        this.who = who;
    }


    public String getPlanNumber() {
        return planNumber;
    }

    public void setPlanNumber(String planNumber) {
        this.planNumber = planNumber;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getCheckTime() {
        return checkTime;
    }

    public void setCheckTime(String checkTime) {
        this.checkTime = checkTime;
    }

}
